package com.lagou.edu.mvcframework.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author liuc
 * @date 2021/4/22
 * @description 异常处理器
 **/
public interface ExceptionHandler {
    /**
     * 异常发生后处理
     * @param request
     * @param response
     * @param e
     * @throws IOException
     */
    void handleException(HttpServletRequest request, HttpServletResponse response, Exception e) throws Exception;
}
